package com.nsqt.banquan.service.impl;

import com.nsqt.banquan.dao.MailListDao;
import com.nsqt.banquan.domain.MailListDO;
import com.nsqt.banquan.service.MailListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("mailListServiceImpl")
public class MailListServiceImpl implements MailListService {
    @Autowired
    private MailListDao mailListDao;

    @Override
    public MailListDO get(Integer id) {
        return mailListDao.get(id);
    }

    @Override
    public List<MailListDO> list(Map<String, Object> map) {
        return mailListDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return mailListDao.count(map);
    }

    @Override
    public int save(MailListDO maillist) {
        return mailListDao.save(maillist);
    }

    @Override
    public int update(MailListDO maillist) {
        return mailListDao.update(maillist);
    }

    @Override
    public int remove(Integer id) {
        return mailListDao.remove(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return mailListDao.batchRemove(ids);
    }

}
